import request from '@/utils/request'

// 查询对比数据列表
export function listCompareData(query) {
  return request({
    url: '/data/compareData/list',
    method: 'get',
    params: query
  })
}

// 查询对比数据详细
export function getCompareData(id) {
  return request({
    url: '/data/compareData/' + id,
    method: 'get'
  })
}

// 保存对比数据
export function saveCompareData(data) {
  return request({
    url: '/data/compareData/save',
    method: 'post',
    data: data
  })
}

// 删除对比数据
export function delCompareData(id) {
  return request({
    url: '/data/compareData/' + id,
    method: 'delete'
  })
}

// 导出对比数据
export function exportCompareData(query) {
  return request({
    url: '/data/compareData/export',
    method: 'get',
    params: query
  })
}
// 上传对比数据
export function uploadDataFile(data) {
  return request({
    url: '/data/compareData/uploadData',
    method: 'post',
    data: data
  })
}
